package com.o2o.service;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.o2o.base.BaseService;
import com.o2o.model.area.Address;

@Scope("prototype")
@Service
public class AreaService extends BaseService{
	
	/**
	 * 根据areaCode获取Address地址详细
	 * @param areaCode 区域code
	 * @return Address地址对象详细
	 */
	public Address getAddressByAreaCode(int areaCode){
		return areaRepository.getAddressByAreaCode(areaCode);
	}

}
